package com.example.mode.holder;

import android.view.View;

import com.bumptech.glide.Glide;
import com.example.mode.R;
import com.utils.conmponentbase.widget.RoundImageView;
import com.zhpan.bannerview.holder.ViewHolder;

/**
 * MvvmDemo com.example.mode.holder
 * 2020-01-10 11:21
 */
public class BannerHolder implements ViewHolder<String> {
    @Override
    public int getLayoutId() {
        return R.layout.activity_main_banner_item;
    }

    @Override
    public void onBind(View itemView, String data, int position, int size) {
        RoundImageView imageView = itemView.findViewById(R.id.imageView);
        imageView.setRadius(8);
        Glide.with(itemView).load(data).into(imageView);
    }
}
